<!--
	新闻详情页面
	张中博
	2017.5.6
	
	
-->

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="css/mui.css"/>
</head>
<body>
    <header class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">新闻详情</h1>
    </header>
    
    <div class ="mui-pull-loading mui-icon mui-spinner mui-visibility" id="circle"></div>    
    <script src="js/jquery.min.js"></script>
    <script src="js/mui.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    	mui.init();
    	var circle = document.getElementById("circle");
    	mui.plusReady(function() {
    		//在新闻详情页面创建子页面
    		window.addEventListener('ready', function(e) {
		    	var href = e.detail.href;
		    	var self = plus.webview.currentWebview();
		    	var sub = plus.webview.create(href, href, {
		    		top: '45px',
		    		bottom: 0
		    	})
		    	
		    	
		    	
		    	self.append(sub);
	    	})
    	})
    	
//  mui.plusReady(function(){
//  	var viewArr = plus.webview.getDisplayWebview();
//		for(var i = 1;i<viewArr.length-1;i++){
//			console.log(viewArr[i])
//			viewArr[i].hide();			
//		}
//  })
    
   
//  mui.init();
//  mui.plusReady(function(){
//  	
//  	var self = plus.webview.currentWebview();
//  	href = JSON.stringify(self.href);
//  	console.log(href);
//  	console.log(self);
//  	plus.webview.create(href,href,{  				
//  		top: "45px",
//  		bottom: "0px"
//  	})
//   	
//	}); 
    
    </script>
</body>
</html>

